<?php


namespace App\Http\Requests\Order\Picking;


use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class UpdateRequest extends FormRequest
{
    /**
     * @return array
     * @author luffyzhao@vip.126.com
     */
    public function rules()
    {
        return [
            'user_id' => ['required', Rule::exists('users', 'id')->where('status', 'on')]
        ];
    }
}